#{extends 'main.html' /}
#{set title: pageTitle + ' - edit' /}

<form method="POST" action="@{Page.save}">
    <div>
        <input name="title" type="text" class="titleinput" value="${pageTitle}"/>
        <input name="orgTitle" type="hidden" value="${pageTitle}"/>
    </div>
    <div>
        <textarea name="content" rows="25" cols="100" class="contentinput">${pageContent}</textarea>
    </div>
    <div>
        <input type="submit" value="Save changes"/>
        <input type="button" value="Discard changes" onclick="window.location.href='@{Page.show}/${pageTitle}'" />
    <div>
</form>